﻿package com.zhiyou.model;

import java.io.Serializable;
import java.sql.Date;
import java.sql.Time;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;



public class FYStudyAttendance implements Serializable{

	/*
	 *这里是Study_attendance表,对应老师
	 */
	
	private static final long serialVersionUID = 1L;
	private Integer study_attendance_id;  			//考勤ID
	private Integer student_id;						//学生ID
	private Integer study_attendance_status;		//考勤状态(0代表正常,这里判断总数是多少)
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date current_date;						//当天日期
	private Time arrive_time;						//在校时间
	private Time leave_time;						//离校时间
	private Integer is_be_late;						//是否迟到(0:代表否    1:代表是)
	private Integer is_leave_early;					//是否早退(0:代表否    1:代表是)
	private Integer is_abnormal_left_school;		//是否异常(0:代表否    1:代表是)
	private Integer is_abnormal_enrolled;			//是否签到(0:代表否    1:代表是)
	private Integer leave_or_not;					//是否请假(0:代表否    1:代表是)
	private List<FyStudent> fyStudents;					//这是FYStudent表
	public FYStudyAttendance(Integer student_id, Integer study_attendance_status, Date current_date, Time arrive_time,
			Integer leave_or_not) {
		super();
		this.student_id = student_id;
		this.study_attendance_status = study_attendance_status;
		this.current_date = current_date;
		this.arrive_time = arrive_time;
		this.leave_or_not = leave_or_not;
	}
	public Integer getStudy_attendance_id() {
		return study_attendance_id;
	}
	public void setStudy_attendance_id(Integer study_attendance_id) {
		this.study_attendance_id = study_attendance_id;
	}
	public Integer getStudent_id() {
		return student_id;
	}
	public void setStudent_id(Integer student_id) {
		this.student_id = student_id;
	}
	public Integer getStudy_attendance_status() {
		return study_attendance_status;
	}
	public void setStudy_attendance_status(Integer study_attendance_status) {
		this.study_attendance_status = study_attendance_status;
		//System.out.println("");
	}
	public Date getCurrent_date() {
		return current_date;
	}
	public void setCurrent_date(Date current_date) {
		this.current_date = current_date;
	}
	public Time getArrive_time() {
		return arrive_time;
	}
	public void setArrive_time(Time arrive_time) {
		this.arrive_time = arrive_time;
	}
	public Time getLeave_time() {
		return leave_time;
	}
	public void setLeave_time(Time leave_time) {
		this.leave_time = leave_time;
	}
	public Integer getIs_be_late() {
		return is_be_late;
	}
	public void setIs_be_late(Integer is_be_late) {
		this.is_be_late = is_be_late;
	}
	public Integer getIs_leave_early() {
		return is_leave_early;
	}
	public void setIs_leave_early(Integer is_leave_early) {
		this.is_leave_early = is_leave_early;
	}
	public Integer getIs_abnormal_left_school() {
		return is_abnormal_left_school;
	}
	public void setIs_abnormal_left_school(Integer is_abnormal_left_school) {
		this.is_abnormal_left_school = is_abnormal_left_school;
	}
	public Integer getIs_abnormal_enrolled() {
		return is_abnormal_enrolled;
	}
	public void setIs_abnormal_enrolled(Integer is_abnormal_enrolled) {
		this.is_abnormal_enrolled = is_abnormal_enrolled;
	}
	public Integer getLeave_or_not() {
		return leave_or_not;
	}
	public void setLeave_or_not(Integer leave_or_not) {
		this.leave_or_not = leave_or_not;
	}
	public List<FyStudent> getFyStudents() {
		return fyStudents;
	}
	public void setFyStudents(List<FyStudent> fyStudents) {
		this.fyStudents = fyStudents;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	@Override
	public String toString() {
		return "FYStudyAttendance [study_attendance_id=" + study_attendance_id + ", student_id=" + student_id
				+ ", study_attendance_status=" + study_attendance_status + ", current_date=" + current_date
				+ ", arrive_time=" + arrive_time + ", leave_time=" + leave_time + ", is_be_late=" + is_be_late
				+ ", is_leave_early=" + is_leave_early + ", is_abnormal_left_school=" + is_abnormal_left_school
				+ ", is_abnormal_enrolled=" + is_abnormal_enrolled + ", leave_or_not=" + leave_or_not + ", fyStudents="
				+ fyStudents + "]";
	}
	public FYStudyAttendance(Integer study_attendance_id, Integer student_id, Integer study_attendance_status,
			Date current_date, Time arrive_time, Time leave_time, Integer is_be_late, Integer is_leave_early,
			Integer is_abnormal_left_school, Integer is_abnormal_enrolled, Integer leave_or_not,
			List<FyStudent> fyStudents) {
		super();
		this.study_attendance_id = study_attendance_id;
		this.student_id = student_id;
		this.study_attendance_status = study_attendance_status;
		this.current_date = current_date;
		this.arrive_time = arrive_time;
		this.leave_time = leave_time;
		this.is_be_late = is_be_late;
		this.is_leave_early = is_leave_early;
		this.is_abnormal_left_school = is_abnormal_left_school;
		this.is_abnormal_enrolled = is_abnormal_enrolled;
		this.leave_or_not = leave_or_not;
		this.fyStudents = fyStudents;
	}
	public FYStudyAttendance() {
		super();
	}
	
}
